package cn.schoolwow.flow.monitor.test.module.flowRecord.record.system;

import cn.schoolwow.flow.monitor.domain.FlowRecordable;
import cn.schoolwow.flow.monitor.test.module.flowRecord.flow.user.UserLoginFailFlow;
import cn.schoolwow.quickflow.domain.FlowContext;

public class UserLoginFailFlowRecord implements FlowRecordable {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new UserLoginFailFlow())
                .putCurrentCompositeFlowData("username", "ams")
                .putCurrentCompositeFlowData("password", "654321")
                .putContextThreadLocalData("initialData", "123456")
                .execute();
    }

    @Override
    public String name() {
        return "用户失败登录记录";
    }

}
